package demo.spring.test180318;

import demo.spring.UnitTestBase;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;

/**
 * @Author: tyzhang
 * @Description:
 * @Date: Created in 12:10 2018/3/18
 */
@RunWith(BlockJUnit4ClassRunner.class)
public class TestAutoWiring extends UnitTestBase {

    public TestAutoWiring(){
        super("classpath*:spring-autowiring.xml");
    }

    @Test
    public void testByName(){
        AutoWiringService autoWiringService = super.getBean("autoWiringService");
        autoWiringService.say("this is test");
    }

}
